package cn.com.cdb.ldms.ftz.controller;

import cn.com.cdb.ldms.annotation.ParamCheck;
import cn.com.cdb.ldms.ftz.dto.in.DeptIn;
import cn.com.cdb.ldms.ftz.dto.out.DeptOut;
import cn.com.cdb.ldms.modules.system.components.AutoViewConfig;
import com.alibaba.fastjson2.JSON;
import com.google.common.collect.Maps;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 部门 前端控制器
 * </p>
 *
 * @author liukui
 * @since 2025-06-26
 */
@Tag(name = "DEMO: 部门")
@RestController("fffff")
@RequestMapping("/view/dept")
@Slf4j
public class DeptController {
    //文档编写
    @Operation(summary = "详情")
    //自动配置前端页面参数
    @AutoViewConfig(value = DeptIn.class)
    @RequestMapping("/api/info")
    @ParamCheck
    public DeptOut aaa(DeptIn dept) {
        Map<String, Object> map = Maps.newConcurrentMap();
        map.put("phone","13828282821");
        map.put("password","98ladjf@la");
        map.put("idcard","12312893812983012380913219");
        log.info("{}", JSON.toJSONString(map));
        return new DeptOut();
    }

}
